package com.study.design.pattern.pattern.behavioral.visitor;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author: gongsl
 * @Date: 2025-03-26 22:33
 * @description: ConcreteElement(具体元素)-工程师
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Engineer implements Employee {
    /**
     * 名称
     */
    private String name;
    /**
     * 代码贡献行数
     */
    private int codeLines;


    @Override
    public void accept(EmployeeVisitor visitor) {
        visitor.visit(this);
    }
}
